export function diff(old: string[], newArr: string[]): any {
  let addArr: string[] = [],
    deleteArr: string[] = []
  if (old == null || old.length === 0) {
    addArr = newArr
  } else if (newArr == null || newArr.length === 0) {
    deleteArr = old
  } else {
    addArr = newArr.filter((item: string) => {
      if (!old.includes(item)) {
        return item
      }
    })
    deleteArr = old.filter((item: string) => {
      if (!newArr.includes(item)) {
        return item
      }
    })
  }
  return [addArr, deleteArr]
}
